package top.hepingan.java.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 漂流瓶表
 * </p>
 *
 * @author author
 * @since 2025-10-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bottle")
@ApiModel(value="Bottle对象", description="漂流瓶表")
public class Bottle implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "漂流瓶ID，主键，自增")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "投递者ID，关联user表")
    private Long userId;

    @ApiModelProperty(value = "漂流瓶内容")
    private String content;

    @ApiModelProperty(value = "漂流瓶类型：0❤️感谢瓶，1?倾诉瓶，2?祝福瓶，3?奇思妙想瓶")
    private Integer type;

    @ApiModelProperty(value = "点赞数量")
    private Integer likeCount;

    @ApiModelProperty(value = "漂流瓶状态：0漂流中，1被捞起，2删除")
    private Integer status;

    @ApiModelProperty(value = "投递时间")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "领取次数")
    private  Integer cishu;


}
